<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /* 
            'window'作为全局变量
            this：当前对象
        */
        console.log(this);  //Window

        function func1() {
            console.log(this);  //Window
        }

        func1();

        /*
            window：
                1.包含了doucment对象，doucment对象就是window的属性
         */
        //  document.querySelector
        //  window.document
        // console.log()

    </script>
</body>

</html>